package com.yanqu.road.server.logic.activity.stronghold.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.logic.activity.stronghold.StrongholdActivityData;
import com.yanqu.road.server.manger.activity.strongholdwar.StrongholdActivityRankMgr;

public abstract class BaseStrongholdActivityRankCondition extends BaseStrongholdActivityCondition {

    public BaseStrongholdActivityRankCondition(GamePlayer player, StrongholdActivityData activityData, ActivityConditionInfo conditionInfo) {
        super(player, activityData, conditionInfo);
    }

    protected void rankChange() {
        StrongholdActivityRankMgr.changeRank(activityData.getActivityId(), conditionInfo.getType(), player.getUserInfo(), getValue());
    }
}
